// system接口
const system = require('../controllers/system.js')
module.exports = (router)=>{
  router.get("/system/menus",system.menus) 
  router.post("/system/menus/add",system.addMenu)
  router.post("/system/menus/del",system.delMenu)
  router.post("/system/menus/edit",system.editMenu)
  router.get("/system/rules",system.getRules)
  router.get("/system/authority/list",system.getAuthorityList)
  router.post("/system/authority/add",system.addAuthority)
  router.post("/system/authority/edit",system.editAuthority)
  router.post("/system/authority/del",system.delAuthority)
  router.post("/system/rules/add",system.addRules)
  router.post("/system/rules/del",system.delRules)
  router.post("/system/rules/edit",system.editRules)
}